package com.skycong.hello77.amiebar.adapter;


import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import com.skycong.hello77.amiebar.entity.AmieBar;
import com.skycong.hello77.amiebar.entity.AmieBar01;

import java.util.List;


/**
 * Created by Kiki on 2018/5/31.
 * 阿米吧报表适配器
 */

public class AmieBarAdapter extends RecyclerView.Adapter {
    private List<AmieBar> dataList;
    private Context context;
    private LayoutInflater inflater;

    public AmieBarAdapter(Context context){
        inflater = LayoutInflater.from(context);
    }

    public void setData(List<AmieBar> data){
        this.dataList = data;
    }
    //创造视图
    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return null;
    }

    //绑定视图
    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return dataList.size();
    }

    @Override
    public int getItemViewType(int position) {
        return dataList.get(position).getType();
    }
}
